﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="DriverEdit.aspx.cs" Inherits="TruckManage_DriverEdit" Title="编辑司机资料" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
    <div class="title">
        &nbsp;<asp:Label ID="lblPageType" runat="server" Text="编辑司机资料"></asp:Label></div>
    <table class="add_table" cellspacing="1" cellpadding="3" align="center">
        <tr>
            <td align="right">
                <label for="code">
                    <b style="color: Red">*</b></label><asp:Label ID="lblCode" runat="server" Text="编号："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCode" runat="server" Width="172px" MaxLength="50" 
                    ValidationGroup="driver"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqvalCode" runat="server" ControlToValidate="txtCode"
                    ErrorMessage="编号不能为空" ValidationGroup="driver"></asp:RequiredFieldValidator>
            </td>
        </tr>
          <tr>
            <td align="right">
                <label for="name">
                    <b style="color: Red">*</b></label><asp:Label ID="lblName" runat="server" Text="姓名："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" Width="172px" ValidationGroup="driver"></asp:TextBox>
                <asp:RequiredFieldValidator
                        ID="rqvalName" runat="server" ControlToValidate="txtName"
                        ErrorMessage="姓名不能为空" ValidationGroup="driver"></asp:RequiredFieldValidator>
              
            </td>
        </tr>
        <tr>
            <td align="right">
                 <asp:Label ID="lblSex" runat="server" Text="性别："></asp:Label>
            </td>
            <td>
                 <asp:RadioButton ID="rad1" runat="server" Checked="true" Text="男" GroupName="Sex" /><asp:RadioButton
                        ID="rad0" runat="server" Text="女" GroupName="Sex" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblIDCard" runat="server" Text="身份证："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtIDCard" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblAddress" runat="server" Text="地址："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblMPhone" runat="server" Text="手机："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMPhone" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblLicence" runat="server" Text="驾照："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtLicence" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblDrivingAge" runat="server" Text="驾使年龄："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDrivingAge" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblYCDate" runat="server" Text="年审日期："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtYCDate" runat="server" Width="172px" onkeydown="return pdDate(this,event);" ValidationGroup="driver"></asp:TextBox>
                <cc1:CalendarExtender ID="cbeYCDate" runat="server" TargetControlID="txtYCDate"
                    Format="yyyy-MM-dd" >
                </cc1:CalendarExtender>
                <asp:RegularExpressionValidator ID="revalYCDate" runat="server" ControlToValidate="txtYCDate" ValidationGroup="driver"
                    ErrorMessage="日期格式不正确" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblBail" runat="server" Text="保证金："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtBail" runat="server" Width="172px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="revalBail" runat="server" ErrorMessage="请输入整数" ControlToValidate="txtBail" 
                    ValidationExpression="^[0-9]*$" ValidationGroup="driver"></asp:RegularExpressionValidator> 
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblRemark" runat="server" Text="备注："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtRemark" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                 <asp:Label ID="lblStatus" runat="server" Text="状态："></asp:Label>
            </td>
            <td>
                 <asp:RadioButton ID="radYes" runat="server" Checked="true" Text="有效" GroupName="Status" /><asp:RadioButton
                        ID="radNo" runat="server" Text="无效" GroupName="Status" />
            </td>
        </tr>
    </table>
    <table class="add_table" cellspacing="1" cellpadding="3">
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" CssClass="btn" ValidationGroup="driver" />
               &nbsp; <asp:Button ID="btnReset" runat="server" Text="返回" CssClass="btn" OnClick="btnReset_Click" />

            </td>
        </tr>
    </table>      
</asp:Content>